/* 
 * File:   ListOfTask.h
 * Author: switch
 *
 * Created on 22 janvier 2013, 21:33
 */

#ifndef LISTOFTASK_H
#define	LISTOFTASK_H

#include <list>
#include <string>
#include "Task.h"
#include "Date.h"
#include <ctime>

using namespace std;

class ListOfTask {
public:
    ListOfTask(string name, Date date);
    ListOfTask(string name);
    virtual ~ListOfTask();
    
    //Gestion de la liste des taches
    void addTask(Task* t);
    void removeTask(Task* t);
    list<Task*> getTasks() const;
    
    string toString();
    void setName(string name);
    string getName() const;
    void setDate(Date date);
    Date getDate() const;
    
private:
    
    string name;
    Date date;
    
    list<Task*> tasksList;
    
};


int operator==(const ListOfTask& a, const ListOfTask& b);

#endif	/* LISTOFTASK_H */

